/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.dssl.controlador.conexion;
import java.sql.Connection;
import java.sql.DriverManager;
/**
 *
 * @author gianfranco
 */
public class ConexionDB {
    private static Connection connection = null;

	public static Connection getConnection() throws Exception {

		String url = "jdbc:mysql://localhost/db_planycontrol";
		String user = "root";
		String pwd = "";

		if (connection == null) {

			Class.forName("com.mysql.jdbc.Driver");
			connection = DriverManager.getConnection(url, user, pwd);

		}

		return connection;

	} // getConection
}
